#creates the enemy class for enemy rooms
class Enemy:
    def __init__(self, name, hp, damage):
        self.name = name
        self.hp = hp
        self.damage = damage
 
    def is_alive(self):
        return self.hp > 0

#creates a giant spider enemy using the enemy class
class GiantSpider(Enemy):
    def __init__(self):
        super().__init__(name="Giant Spider", hp=10, damage=2)

#creates a snakes enemy
class Snakes(Enemy):
    def __init__(self):
        super().__init__(name="The snakes", hp=30, damage=1)